﻿using System;
using System.Collections.Generic;
using System.Text;
using Cashier_Utils;

namespace Cashier_Model
{
    [Table(Tablename="store_info")]
    public class StoreInfo: BaseModel
    {
        private Int64 id;

        [Table(Columnname = "id", Columntype = "bigint", Iskey = true, Iscondition = true, Isdeletefield = true)]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String enterpriseNo;

        [Table(Columnname="enterprise_no", Columntype="varchar", Iscondition=true, Isdeletefield=true)]
        public String EnterpriseNo
        {
            get { return enterpriseNo; }
            set { enterpriseNo = value; }
        }

        private String storeNo;

        [Table(Columnname = "store_no", Columntype = "varchar", Iscondition = true)]
        public String StoreNo
        {
            get { return storeNo; }
            set { storeNo = value; }
        }

        private String name;

        [Table(Columnname = "name", Columntype = "varchar", Iscondition = true, Conditiontype = ConditionType.LIKE, Isupdatefield=true)]
        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        private String contact;

        [Table(Columnname = "contact", Columntype = "varchar", Isupdatefield = true)]
        public String Contact
        {
            get { return contact; }
            set { contact = value; }
        }

        private String mobile;

        [Table(Columnname = "mobile", Columntype = "varchar", Isupdatefield = true)]
        public String Mobile
        {
            get { return mobile; }
            set { mobile = value; }
        }

        private String tel;

        [Table(Columnname = "tel", Columntype = "varchar", Isupdatefield = true)]
        public String Tel
        {
            get { return tel; }
            set { tel = value; }
        }

        private String fax;

        [Table(Columnname = "fax", Columntype = "varchar", Isupdatefield = true)]
        public String Fax
        {
            get { return fax; }
            set { fax = value; }
        }
        
        private String email;

        [Table(Columnname = "email", Columntype = "varchar", Isupdatefield = true)]
        public String Email
        {
            get { return email; }
            set { email = value; }
        }

        private String address;

        [Table(Columnname = "address", Columntype = "varchar", Isupdatefield = true)]
        public String Address
        {
            get { return address; }
            set { address = value; }
        }

        private String zip;

        [Table(Columnname = "zip", Columntype = "varchar", Isupdatefield = true)]
        public String Zip
        {
            get { return zip; }
            set { zip = value; }
        }

        private String note;

        [Table(Columnname = "note", Columntype = "varchar", Isupdatefield = true)]
        public String Note
        {
            get { return note; }
            set { note = value; }
        }

        private DateTime createTime;

        [Table(Columnname = "create_time", Columntype = "datetime")]
        public DateTime CreateTime
        {
            get { return createTime; }
            set { createTime = value; }
        }
    }
}
